﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OAWeb.Models
{
    public class Department
    {
        [Display(Name = "部门编号")]
        [Required(ErrorMessage = "DepartmentID is required")]
        public int DepartmentID { get; set; }
        [Required(ErrorMessage = "DepartmentName is required")]
        [StringLength(30, MinimumLength = 3)]
        [Display(Name = " 部门名")]
        public string DepartmentName { get; set; }
        [Display(Name = " 创建年份")]
        [DataType(DataType.Date)]
        public DateTime CreateYear { get; set; }
        [Display(Name = " 领导人")]
        public string Leader { get; set; }

        
        public List<DepartmentGrade> DepartmentGrade { get; set; }
    }
}